package com.qf.dao.impl;

import com.qf.dao.StudentAddDao;
import com.qf.domain.Student;
import com.qf.utils.JDBCUtils2;
import org.springframework.jdbc.core.JdbcTemplate;

public class StudentAddDaoImpl implements StudentAddDao {
    JdbcTemplate jd=new JdbcTemplate(JDBCUtils2.getDs());
    @Override
    public int add(Student parameterMap) {
        String sql="insert into ya values(?,?,?)";
        int update = jd.update(sql, parameterMap.getId(), parameterMap.getUsername(), parameterMap.getPassword());

        return update;
    }
}
